package com.simonall.i18n;

import java.util.Properties;

import com.simonall.enums.ResponseCodeEnum;

/**
 * i18n
 * 
 * @author simonall
 */
public class MessageSource {

	public static Properties properties = new Properties();

	public static String getMessage(String code) {
		return properties.getProperty(code);
	}

	public static String getMessage(ResponseCodeEnum code) {
		return getMessage(code.name());
	}
}
